package com.demo.api;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.core.env.Environment;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.PrintStream;

@EnableDiscoveryClient
@SpringBootApplication
public class DemoApiApplication {

	public static void main(String[] args) {
		SpringApplication app = new SpringApplication(DemoApiApplication.class);
		app.setBannerMode(Banner.Mode.CONSOLE);
		app.run(args);

//		new SpringApplicationBuilder(DemoApiApplication.class).bannerMode(Banner.Mode.CONSOLE).run(args);
	}
}
